package com.qst.crop.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.qst.crop.dao.reportTableDao;
import com.qst.crop.entity.reportTable;
import com.qst.crop.service.reportTableService;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author : ZTH
 * @Date: 2025/7/8 15:09
 * @Description:
 */
@Service
public class reportTableServiceImpl implements reportTableService {

    @Autowired
    private reportTableDao reportTableDao;

    private Integer pageSize = 30;


    @Override
    public PageInfo<reportTable> selectAll(Integer pageNum) {
        PageHelper.startPage(pageNum, this.pageSize);
        List<reportTable> tables = this.reportTableDao.selectAll();
        PageInfo<reportTable> pageInfo = new PageInfo(tables);
        return pageInfo;
    }
}
